/**
 * @FileName ConcreteElement1.java
 * @Package com.designMode.visitor
 * -------------------------------------
 * @function Please write description of function
 * @Date 2016-1-19 上午11:36:21
 * -------------------------------------
 * Copyright (c) 2016,顾博君 All Rights Reserved.
 */
package com.designMode.visitor;

/**
 * @ClassName ConcreteElement1
 * @author 顾博君
 * @Date 2016-1-19 上午11:36:21
 * @Function 具体元素1
 */
public class ConcreteElement1 extends Element {
	/**
	 * 完整的业务逻辑
	 */
	@Override
	public void doSomething() {
		System.out.println("第一个元素doSomething");
	}

	public void doOtherThing(){
		System.out.println("第一个元素doOtherThing");
	}

	/**
	 * 允许访问的访问者
	 */
	@Override
	public void accept(Visitor v) {
		v.visitConcreteElement(this);
	}
}
